#[doc = "Register `UART_LCR_H` reader"]
pub struct R(crate::R<UART_LCR_H_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<UART_LCR_H_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::convert::From<crate::R<UART_LCR_H_SPEC>> for R {
    fn from(reader: crate::R<UART_LCR_H_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `UART_LCR_H` writer"]
pub struct W(crate::W<UART_LCR_H_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<UART_LCR_H_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl core::convert::From<crate::W<UART_LCR_H_SPEC>> for W {
    fn from(writer: crate::W<UART_LCR_H_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Parity bit enable.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SPS_A {
    #[doc = "0: Stick Parity disabled."]
    DISABLED = 0,
    #[doc = "1: When \\[pen\\]
and \\[eps\\]
are set to 1, the parity bit is transmitted and checked as 0. When \\[pen\\]
is set to 1 and \\[eps\\]
is set to 0, the parity bit is transmitted and checked as 1."]
    ENABLED = 1,
}
impl From<SPS_A> for bool {
    #[inline(always)]
    fn from(variant: SPS_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `sps` reader - Parity bit enable."]
pub struct SPS_R(crate::FieldReader<bool, SPS_A>);
impl SPS_R {
    pub(crate) fn new(bits: bool) -> Self {
        SPS_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SPS_A {
        match self.bits {
            false => SPS_A::DISABLED,
            true => SPS_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == SPS_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == SPS_A::ENABLED
    }
}
impl core::ops::Deref for SPS_R {
    type Target = crate::FieldReader<bool, SPS_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `sps` writer - Parity bit enable."]
pub struct SPS_W<'a> {
    w: &'a mut W,
}
impl<'a> SPS_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: SPS_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "Stick Parity disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(SPS_A::DISABLED)
    }
    #[doc = "When \\[pen\\]
and \\[eps\\]
are set to 1, the parity bit is transmitted and checked as 0. When \\[pen\\]
is set to 1 and \\[eps\\]
is set to 0, the parity bit is transmitted and checked as 1."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(SPS_A::ENABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u16) & 0x01) << 7);
        self.w
    }
}
#[doc = "Number of data bits in a frame to be sent or received.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum WLEN_A {
    #[doc = "0: 5 bits."]
    LEN_5 = 0,
    #[doc = "1: 6 bits."]
    LEN_6 = 1,
    #[doc = "16: 7 bits."]
    LEN_7 = 16,
    #[doc = "17: 8 bits."]
    LEN_8 = 17,
}
impl From<WLEN_A> for u8 {
    #[inline(always)]
    fn from(variant: WLEN_A) -> Self {
        variant as _
    }
}
#[doc = "Field `wlen` reader - Number of data bits in a frame to be sent or received."]
pub struct WLEN_R(crate::FieldReader<u8, WLEN_A>);
impl WLEN_R {
    pub(crate) fn new(bits: u8) -> Self {
        WLEN_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> WLEN_A {
        match self.bits {
            0 => WLEN_A::LEN_5,
            1 => WLEN_A::LEN_6,
            16 => WLEN_A::LEN_7,
            17 => WLEN_A::LEN_8,
            _ => unreachable!(),
        }
    }
    #[doc = "Checks if the value of the field is `LEN_5`"]
    #[inline(always)]
    pub fn is_len_5(&self) -> bool {
        **self == WLEN_A::LEN_5
    }
    #[doc = "Checks if the value of the field is `LEN_6`"]
    #[inline(always)]
    pub fn is_len_6(&self) -> bool {
        **self == WLEN_A::LEN_6
    }
    #[doc = "Checks if the value of the field is `LEN_7`"]
    #[inline(always)]
    pub fn is_len_7(&self) -> bool {
        **self == WLEN_A::LEN_7
    }
    #[doc = "Checks if the value of the field is `LEN_8`"]
    #[inline(always)]
    pub fn is_len_8(&self) -> bool {
        **self == WLEN_A::LEN_8
    }
}
impl core::ops::Deref for WLEN_R {
    type Target = crate::FieldReader<u8, WLEN_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `wlen` writer - Number of data bits in a frame to be sent or received."]
pub struct WLEN_W<'a> {
    w: &'a mut W,
}
impl<'a> WLEN_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: WLEN_A) -> &'a mut W {
        self.bits(variant.into())
    }
    #[doc = "5 bits."]
    #[inline(always)]
    pub fn len_5(self) -> &'a mut W {
        self.variant(WLEN_A::LEN_5)
    }
    #[doc = "6 bits."]
    #[inline(always)]
    pub fn len_6(self) -> &'a mut W {
        self.variant(WLEN_A::LEN_6)
    }
    #[doc = "7 bits."]
    #[inline(always)]
    pub fn len_7(self) -> &'a mut W {
        self.variant(WLEN_A::LEN_7)
    }
    #[doc = "8 bits."]
    #[inline(always)]
    pub fn len_8(self) -> &'a mut W {
        self.variant(WLEN_A::LEN_8)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x03 << 5)) | (((value as u16) & 0x03) << 5);
        self.w
    }
}
#[doc = "TX/RX FIFO enable.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FEN_A {
    #[doc = "0: disabled."]
    DISABLED = 0,
    #[doc = "1: enabled."]
    ENABLED = 1,
}
impl From<FEN_A> for bool {
    #[inline(always)]
    fn from(variant: FEN_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `fen` reader - TX/RX FIFO enable."]
pub struct FEN_R(crate::FieldReader<bool, FEN_A>);
impl FEN_R {
    pub(crate) fn new(bits: bool) -> Self {
        FEN_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> FEN_A {
        match self.bits {
            false => FEN_A::DISABLED,
            true => FEN_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == FEN_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == FEN_A::ENABLED
    }
}
impl core::ops::Deref for FEN_R {
    type Target = crate::FieldReader<bool, FEN_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `fen` writer - TX/RX FIFO enable."]
pub struct FEN_W<'a> {
    w: &'a mut W,
}
impl<'a> FEN_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: FEN_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(FEN_A::DISABLED)
    }
    #[doc = "enabled."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(FEN_A::ENABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u16) & 0x01) << 4);
        self.w
    }
}
#[doc = "Whether a 2-bit stop bit exists at the end of a transmitted frame.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum STP2_A {
    #[doc = "0: No 2-bit stop bit exists."]
    NO = 0,
    #[doc = "1: A 2-bit stop bit exists."]
    YES = 1,
}
impl From<STP2_A> for bool {
    #[inline(always)]
    fn from(variant: STP2_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `stp2` reader - Whether a 2-bit stop bit exists at the end of a transmitted frame."]
pub struct STP2_R(crate::FieldReader<bool, STP2_A>);
impl STP2_R {
    pub(crate) fn new(bits: bool) -> Self {
        STP2_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> STP2_A {
        match self.bits {
            false => STP2_A::NO,
            true => STP2_A::YES,
        }
    }
    #[doc = "Checks if the value of the field is `NO`"]
    #[inline(always)]
    pub fn is_no(&self) -> bool {
        **self == STP2_A::NO
    }
    #[doc = "Checks if the value of the field is `YES`"]
    #[inline(always)]
    pub fn is_yes(&self) -> bool {
        **self == STP2_A::YES
    }
}
impl core::ops::Deref for STP2_R {
    type Target = crate::FieldReader<bool, STP2_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `stp2` writer - Whether a 2-bit stop bit exists at the end of a transmitted frame."]
pub struct STP2_W<'a> {
    w: &'a mut W,
}
impl<'a> STP2_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: STP2_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "No 2-bit stop bit exists."]
    #[inline(always)]
    pub fn no(self) -> &'a mut W {
        self.variant(STP2_A::NO)
    }
    #[doc = "A 2-bit stop bit exists."]
    #[inline(always)]
    pub fn yes(self) -> &'a mut W {
        self.variant(STP2_A::YES)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u16) & 0x01) << 3);
        self.w
    }
}
#[doc = "Parity bit select during data transmission and reception.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EPS_A {
    #[doc = "0: odd parity generation and checking."]
    ODD = 0,
    #[doc = "1: even parity generation and checking."]
    EVEN = 1,
}
impl From<EPS_A> for bool {
    #[inline(always)]
    fn from(variant: EPS_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `eps` reader - Parity bit select during data transmission and reception."]
pub struct EPS_R(crate::FieldReader<bool, EPS_A>);
impl EPS_R {
    pub(crate) fn new(bits: bool) -> Self {
        EPS_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> EPS_A {
        match self.bits {
            false => EPS_A::ODD,
            true => EPS_A::EVEN,
        }
    }
    #[doc = "Checks if the value of the field is `ODD`"]
    #[inline(always)]
    pub fn is_odd(&self) -> bool {
        **self == EPS_A::ODD
    }
    #[doc = "Checks if the value of the field is `EVEN`"]
    #[inline(always)]
    pub fn is_even(&self) -> bool {
        **self == EPS_A::EVEN
    }
}
impl core::ops::Deref for EPS_R {
    type Target = crate::FieldReader<bool, EPS_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `eps` writer - Parity bit select during data transmission and reception."]
pub struct EPS_W<'a> {
    w: &'a mut W,
}
impl<'a> EPS_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: EPS_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "odd parity generation and checking."]
    #[inline(always)]
    pub fn odd(self) -> &'a mut W {
        self.variant(EPS_A::ODD)
    }
    #[doc = "even parity generation and checking."]
    #[inline(always)]
    pub fn even(self) -> &'a mut W {
        self.variant(EPS_A::EVEN)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u16) & 0x01) << 2);
        self.w
    }
}
#[doc = "Parity check select.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PEN_A {
    #[doc = "0: The parity check is disabled."]
    DISABLED = 0,
    #[doc = "1: The parity bit is generated at the TX end and checked at the RX end."]
    ENABLED = 1,
}
impl From<PEN_A> for bool {
    #[inline(always)]
    fn from(variant: PEN_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `pen` reader - Parity check select."]
pub struct PEN_R(crate::FieldReader<bool, PEN_A>);
impl PEN_R {
    pub(crate) fn new(bits: bool) -> Self {
        PEN_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> PEN_A {
        match self.bits {
            false => PEN_A::DISABLED,
            true => PEN_A::ENABLED,
        }
    }
    #[doc = "Checks if the value of the field is `DISABLED`"]
    #[inline(always)]
    pub fn is_disabled(&self) -> bool {
        **self == PEN_A::DISABLED
    }
    #[doc = "Checks if the value of the field is `ENABLED`"]
    #[inline(always)]
    pub fn is_enabled(&self) -> bool {
        **self == PEN_A::ENABLED
    }
}
impl core::ops::Deref for PEN_R {
    type Target = crate::FieldReader<bool, PEN_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `pen` writer - Parity check select."]
pub struct PEN_W<'a> {
    w: &'a mut W,
}
impl<'a> PEN_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: PEN_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "The parity check is disabled."]
    #[inline(always)]
    pub fn disabled(self) -> &'a mut W {
        self.variant(PEN_A::DISABLED)
    }
    #[doc = "The parity bit is generated at the TX end and checked at the RX end."]
    #[inline(always)]
    pub fn enabled(self) -> &'a mut W {
        self.variant(PEN_A::ENABLED)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u16) & 0x01) << 1);
        self.w
    }
}
#[doc = "TX break select.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum BRK_A {
    #[doc = "1: After the current data transmission is complete, the UTXD outputs low level continuously."]
    BRK = 1,
}
impl From<BRK_A> for bool {
    #[inline(always)]
    fn from(variant: BRK_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `brk` reader - TX break select."]
pub struct BRK_R(crate::FieldReader<bool, BRK_A>);
impl BRK_R {
    pub(crate) fn new(bits: bool) -> Self {
        BRK_R(crate::FieldReader::new(bits))
    }
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> crate::Variant<bool, BRK_A> {
        use crate::Variant::*;
        match self.bits {
            true => Val(BRK_A::BRK),
            i => Res(i),
        }
    }
    #[doc = "Checks if the value of the field is `BRK`"]
    #[inline(always)]
    pub fn is_brk(&self) -> bool {
        **self == BRK_A::BRK
    }
}
impl core::ops::Deref for BRK_R {
    type Target = crate::FieldReader<bool, BRK_A>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
#[doc = "Field `brk` writer - TX break select."]
pub struct BRK_W<'a> {
    w: &'a mut W,
}
impl<'a> BRK_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: BRK_A) -> &'a mut W {
        self.bit(variant.into())
    }
    #[doc = "After the current data transmission is complete, the UTXD outputs low level continuously."]
    #[inline(always)]
    pub fn brk(self) -> &'a mut W {
        self.variant(BRK_A::BRK)
    }
    #[doc = r"Sets the field bit"]
    #[inline(always)]
    pub fn set_bit(self) -> &'a mut W {
        self.bit(true)
    }
    #[doc = r"Clears the field bit"]
    #[inline(always)]
    pub fn clear_bit(self) -> &'a mut W {
        self.bit(false)
    }
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub fn bit(self, value: bool) -> &'a mut W {
        self.w.bits = (self.w.bits & !0x01) | ((value as u16) & 0x01);
        self.w
    }
}
impl R {
    #[doc = "Bit 7 - Parity bit enable."]
    #[inline(always)]
    pub fn sps(&self) -> SPS_R {
        SPS_R::new(((self.bits >> 7) & 0x01) != 0)
    }
    #[doc = "Bits 5:6 - Number of data bits in a frame to be sent or received."]
    #[inline(always)]
    pub fn wlen(&self) -> WLEN_R {
        WLEN_R::new(((self.bits >> 5) & 0x03) as u8)
    }
    #[doc = "Bit 4 - TX/RX FIFO enable."]
    #[inline(always)]
    pub fn fen(&self) -> FEN_R {
        FEN_R::new(((self.bits >> 4) & 0x01) != 0)
    }
    #[doc = "Bit 3 - Whether a 2-bit stop bit exists at the end of a transmitted frame."]
    #[inline(always)]
    pub fn stp2(&self) -> STP2_R {
        STP2_R::new(((self.bits >> 3) & 0x01) != 0)
    }
    #[doc = "Bit 2 - Parity bit select during data transmission and reception."]
    #[inline(always)]
    pub fn eps(&self) -> EPS_R {
        EPS_R::new(((self.bits >> 2) & 0x01) != 0)
    }
    #[doc = "Bit 1 - Parity check select."]
    #[inline(always)]
    pub fn pen(&self) -> PEN_R {
        PEN_R::new(((self.bits >> 1) & 0x01) != 0)
    }
    #[doc = "Bit 0 - TX break select."]
    #[inline(always)]
    pub fn brk(&self) -> BRK_R {
        BRK_R::new((self.bits & 0x01) != 0)
    }
}
impl W {
    #[doc = "Bit 7 - Parity bit enable."]
    #[inline(always)]
    pub fn sps(&mut self) -> SPS_W {
        SPS_W { w: self }
    }
    #[doc = "Bits 5:6 - Number of data bits in a frame to be sent or received."]
    #[inline(always)]
    pub fn wlen(&mut self) -> WLEN_W {
        WLEN_W { w: self }
    }
    #[doc = "Bit 4 - TX/RX FIFO enable."]
    #[inline(always)]
    pub fn fen(&mut self) -> FEN_W {
        FEN_W { w: self }
    }
    #[doc = "Bit 3 - Whether a 2-bit stop bit exists at the end of a transmitted frame."]
    #[inline(always)]
    pub fn stp2(&mut self) -> STP2_W {
        STP2_W { w: self }
    }
    #[doc = "Bit 2 - Parity bit select during data transmission and reception."]
    #[inline(always)]
    pub fn eps(&mut self) -> EPS_W {
        EPS_W { w: self }
    }
    #[doc = "Bit 1 - Parity check select."]
    #[inline(always)]
    pub fn pen(&mut self) -> PEN_W {
        PEN_W { w: self }
    }
    #[doc = "Bit 0 - TX break select."]
    #[inline(always)]
    pub fn brk(&mut self) -> BRK_W {
        BRK_W { w: self }
    }
    #[doc = "Writes raw bits to the register."]
    pub unsafe fn bits(&mut self, bits: u16) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "UART_LCR_H is the transfer mode control register.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [uart_lcr_h](index.html) module"]
pub struct UART_LCR_H_SPEC;
impl crate::RegisterSpec for UART_LCR_H_SPEC {
    type Ux = u16;
}
#[doc = "`read()` method returns [uart_lcr_h::R](R) reader structure"]
impl crate::Readable for UART_LCR_H_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [uart_lcr_h::W](W) writer structure"]
impl crate::Writable for UART_LCR_H_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets UART_LCR_H to value 0"]
impl crate::Resettable for UART_LCR_H_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}
